// 科技感主题色
$primary-color: #00f2fe;
$secondary-color: #4facfe;
$dark-bg: #0a192f;
$glass-bg: rgba(10, 25, 47, 0.8);
$glow: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));

body {
  background: $dark-bg;
  color: white;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

// 科技感玻璃效果
.glass-panel {
  background: $glass-bg;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 20px;
  position: relative;
  overflow: hidden;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 50%
    );
    transform: translateX(-100%);
    animation: shine 3s infinite;
    z-index: -1;
  }
}

@keyframes shine {
  100% {
    transform: translateX(100%);
  }
}

// 图表容器样式
.chart-container {
  @extend .glass-panel !optional;
  height: 100%;
  position: relative;
  
  .chart-title {
    color: $primary-color;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    
    &::before {
      content: '';
      display: block;
      width: 6px;
      height: 1rem;
      background: $primary-color;
      margin-right: 10px;
    }
  }
}

// 科技感滚动条
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 25, 47, 0.5);
}

::-webkit-scrollbar-thumb {
  background: $primary-color;
  border-radius: 4px;
}